package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.Teacher;

import java.util.List;

public interface TeacherMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Teacher record);

    Teacher selectByPrimaryKey(Long id);

    List<Teacher> selectAll();

    int updateByPrimaryKey(Teacher record);

    Teacher selectByName(@Param("name") String userName);
}